package com.itheima.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Value("${user1.name}")
    private String name;

    @RequestMapping("/hello")
    public String show(){
        System.out.println(name);
        return "spring boot 第一个案例";
    }
}
